-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix for Vlan doesn't match issue while adding IP range for the shared network without any IP range #10837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for Vlan doesn't match issue while adding IP range for the shared network without any IP range #10837
Conversation
@blueorangutan package |
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
… network without any IP range
c67649a
to
4efa3af
Compare
@blueorangutan package |
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #10837 +/- ##
==========================================
Coverage 15.17% 15.17%
- Complexity 11339 11349 +10
==========================================
Files 5414 5415 +1
Lines 475185 475591 +406
Branches 57991 58037 +46
==========================================
+ Hits 72105 72167 +62
- Misses 395018 395351 +333
- Partials 8062 8073 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13303 |
@blueorangutan test |
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm
not tested yet
server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
Show resolved
Hide resolved
[SF] Trillian test result (tid-13244)
|
[SF] Trillian Build Failed (tid-13275) |
@blueorangutan test |
@weizhouapache a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
[SF] Trillian test result (tid-13287)
|
Long networkId = cmd.getNetworkID(); | ||
Long physicalNetworkId = cmd.getPhysicalNetworkId(); | ||
|
||
// Verify that network exists | ||
Network network = null; | ||
if (networkId != null) { | ||
network = _networkDao.findById(networkId); | ||
if (network == null) { | ||
throw new InvalidParameterValueException("Unable to find network by id " + networkId); | ||
} else { | ||
zoneId = network.getDataCenterId(); | ||
physicalNetworkId = network.getPhysicalNetworkId(); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be a seperate method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
if (StringUtils.isBlank(vlanId)) { | ||
vlanId = Vlan.UNTAGGED; | ||
if (network != null & network.getTrafficType() == TrafficType.Guest) { | ||
boolean connectivityWithoutVlan = isConnectivityWithoutVlan(network); | ||
vlanId = getNetworkVlanId(network, connectivityWithoutVlan); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be an extra method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@blueorangutan test keepEnv |
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
[SF] Trillian test result (tid-13302)
|
@blueorangutan package |
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13394 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@blueorangutan test |
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
[SF] Trillian test result (tid-13321)
|
Description
This PR fixes Vlan doesn't match issue while adding IP range for the shared network without any IP range.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
Before Fix:
After Fix:
How Has This Been Tested?
How did you try to break this feature and the system with this change?